<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/jquery-3.7.1.js"></script>
		<script type="text/javascript">
			$(function() {
				$("input").eq(1).on("change",function(){
					let n1=$("input").eq(0).val()-0;
					let n2=$("input").eq(1).prop("value")-0;
					let r=n1+n2;
					console.log(r);
					//$("input:disabled").val(r.toFixed(16)-0)
					$("input:disabled").prop("value",r.toFixed(16)-0)
				})
				
				
			})
		</script>
	</head>
	<body>
		<input type="text" placeholder="输入第一个数">+
		<input type="text" placeholder="输入第二个数">=
		<input type="text" placeholder="结果" disabled="disabled">
	</body>
</html>
